package com.gdcn.report.buider;

import java.sql.Connection;

import com.gdcn.report.data.FileData;
import com.gdcn.report.service.ReportDataService;

public abstract class Builder {
	public void init(ReportDataService reportService, Connection connection, FileData fd) {
		
	}
	public String build() {
		buildHeader();
		buildBody();
		return buildTail();
	}
	abstract protected void buildHeader();
	abstract protected void buildBody();
	abstract protected String buildTail();
}
